package logic

import (
	"context"
	"gitee.com/jmdvirus/jkgo/jk/jklog"

	"feitianstudyservice/internal/svc"
	"feitianstudyservice/internal/types"

	"github.com/zeromicro/go-zero/core/logx"
)

type FeiTianStudyServiceRunLogic struct {
	logx.Logger
	ctx    context.Context
	svcCtx *svc.ServiceContext
}

func NewFeiTianStudyServiceRunLogic(ctx context.Context, svcCtx *svc.ServiceContext) *FeiTianStudyServiceRunLogic {
	return &FeiTianStudyServiceRunLogic{
		Logger: logx.WithContext(ctx),
		ctx:    ctx,
		svcCtx: svcCtx,
	}
}

func (l *FeiTianStudyServiceRunLogic) FeiTianStudyServiceRun(req *types.RunRequest) (resp *types.GenResponse, err error) {
	jklog.L().Debugln("req title ", req.Title)

	return RunAdd(*req), nil
}
